#include <stdio.h>

int main()
{
    //定义一个char类型变量并赋值，输出 %
    char a = 'w';
    printf("a = %c\n",a);


    //定义一个short类型变量并赋值，输出 d%
    short b = 100;
    printf("b = %d\n",b);

    int c = 1234;
    printf("c = %d\n",c);\

    long d = 12345678;
    printf("d = %ld\n",d);

    float e = 3.1415926535;
    printf("e = %f\n",e);

    //定义一个double类型变量并赋值，输出 lf%
    //默认保留小数点后六位
    double f = 3.1415926535897932;
    printf("f = %8lf\n",f);
    return 0;
}

